import com.cuc.services.Userservice;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test02 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("spring-context.xml");
        Userservice user01 = ac.getBean(Userservice.class);
        Userservice user02 = ac.getBean(Userservice.class);

        System.out.println(user01 == user02);
    }
}
